/*
 * Copyright (c) 2024. Shanghai HEADING information Engineering Co., Ltd. All rights reserved.
 */
package com.lovely602.design.study.basic;

import java.util.ArrayList;
import java.util.Collection;
import java.util.List;

/**
 * @author lizhixing
 */
public class InstanceofTest {

  public static void main(String[] args) {

    List<String> list = new ArrayList<>();
    boolean result = list instanceof Collection;
    System.out.println(result);

  }
}
